package net.lzzy.practices.constants;

/**
 * @author admin
 */
public class ApiConstant {
    private  ApiConstant(){}

    /**
     * 指定api返回的content type
     */
    public static final String API_PRODUCES = "application/json";
    /**
     * AuthApiController 相关的路由配置
     */
    public static final String ROUTE_AUTH_ROOT = "api/v1";

    public static final String ROUTE_AUTH_LOGIN = "/login";

    public static final String ROUTE_AUTH_EXISTS = "/exists/{user}";

    public static final String ROUTE_AUTH_REGISTER = "/register";

    public static final String ROUTE_AUTH_UPLOAD = "/upload";


    public static final String ROUTE_USER_ROOT = "api/v1/admin";

    public static final String ROUTE_USER_ALL = "/";

    public static final String ROUTE_USER_PAGE = "/page";

    public static final String ROUTE_USER_SEARCH = "/search/{kw}";

    public static final String ROUTE_USER_APPLYING = "/apply";

    public static final String ROUTE_USER_APPROVE = "/approve";

    public static final String ROUTE_USER_DECLINE = "/decline";

    public static final String ROUTE_USER_BAN = "/ban";

    /**
     * CourseApiController相关路由配置
     */

    public static final String ROUTE_COURSE_ROOT = "/api/v1/course";

    public static final String ROUTE_COURSE_ALL = "/";

    public static final String ROUTE_COURSE_OPEN = "/open";

    public static final String ROUTE_COURSE_PAGE = "/page";

    public static final String ROUTE_COURSE_OPEN_PAGE = "/open/page";

    public static final String ROUTE_COURSE_TEACHER = "/teacher";

    public static final String ROUTE_COURSE_STUDENT = "/student";

    public static final  String ROUTE_COURSE_ADD = "/add";

    public static final  String ROUTE_COURSE_OPEN_CLOSE = "/oc";

    public static final  String ROUTE_COURSE_PUT = "/put/{id}";

    public static final String ROUTE_COURSE_REMOVE = "/remove";

    //ApplicontApiController
    public static final String ROUTE_APPLY_ROOT = "api/v1/apply";
    public static final String ROUTE_APPLY_APPLY = "/apply";
    public static final String ROUTE_APPLY_STUONT_COURSES = "/courses";
    public static final String ROUTE_APPLY_STUONT_ENROLLED = "/enrolled";
    public static final String ROUTE_APPLY_STUONT_APPLYING = "/applying";
    public static final String ROUTE_APPLY_STUONT_DECLINED = "/declined";
    public static final String ROUTE_APPLY_APPROVE = "/approve";
    public static final String ROUTE_APPLY_DECLINE = "/decline";
    public static final String ROUTE_APPLY_REMOVE = "/remove";
    public static final String ROUTE_APPLY_TEACHER_ENROLLED = "/teacher/enrolled";
    public static final String ROUTE_APPLY_TEACHER_APPLYING = "/teacher/applying";
    public static final String ROUTE_APPLY_TEACHER_DECLINED = "/teacher/declined";

    //ChapterApiController
    public static final String ROUTE_CHAPTER_ROOT = "/api/chapter";
    public static final String ROUTE_CHAPTER_TEACHER = "/teacher/chapter";
    public static final String ROUTE_CHAPTER_STUDENT = "/student/chapter";
    public static final String ROUTE_CHAPTER_ADD = "/add/chapter";
    public static final String ROUTE_CHAPTER_PUT = "/put/chapter";
    public static final String ROUTE_CHAPTER_OPEN_CLOSE = "/close/chapter";
    public static final String ROUTE_CHAPTER_REMOVE = "/remove/chapter";


    //QuestionApiController
//    public static final String ROUTE_QUESTION_ROOT = "/api/questions";
//    public static final String ROUTE_GET_QUESTIONS_BY_CHAPTER_ID_PAGE = "/chapter/{chapterId}/page/{page}/size/{size}";
//    public static final String ROUTE_GET_QUESTIONS_BY_CHAPTER_ID = "/chapter/{chapterId}";
//    public static final String ROUTE_GET_QUESTION_BY_ID = "/id/{id}";
//    public static final String ROUTE_ADD_QUESTION = "/teacher/{teacherId}/course/{courseId}/chapter/{chapterId}/add";
//    public static final String ROUTE_UPDATE_QUESTION = "/teacher/{teacherId}/course/{courseId}/chapter/{chapterId}/question/{questionId}/update";
//    public static final String ROUTE_REMOVE_QUESTION = "/teacher/{teacherId}/course/{courseId}/chapter/{chapterId}/question/{questionId}/remove";
//    public static final String ROUTE_ADD_OPTION = "/teacher/{teacherId}/course/{courseId}/chapter/{chapterId}/question/{questionId}/addOption";
//    public static final String ROUTE_REMOVE_OPTION = "/teacher/{teacherId}/course/{courseId}/chapter/{chapterId}/question/{questionId}/removeOption";
}







